<?php
namespace Home\Model;
use Think\Model\RelationModel;
class ArticleModel extends RelationModel{
	protected $_validate = array(
		array('arname','require','标题不能为空'),
		array('arcontent','require','正文不能为空！'),
	);
		protected $_link = array(
		'Fl' => array(
			'mapping_type' => self::BELONGS_TO,
			'class_name'   => 'Fl',
			'foreign_key'   => 'flid',
			'mapping_name'  => 'fl',
			'mapping_fields' => 'flname',
		),
	);
}
